using System;
using System.Collections.Generic;
using System.Text;

namespace Axe.Data.Mapping.Attributes
{
    [AttributeUsage(AttributeTargets.Class,AllowMultiple=false,Inherited=false)]
    public sealed class MappedObjectAttribute : Attribute
    {
        string m_MappedTableName;

        #region public string MappedTableName
        public string MappedTableName
        {
            get { return m_MappedTableName; }
            set { m_MappedTableName = value; }
        }
        #endregion

        public MappedObjectAttribute(string tableName)
        {
            if (String.IsNullOrEmpty(tableName))
                throw new ArgumentException("Invalid table name", "tableName");

            m_MappedTableName = tableName;
        }
    }
}
